import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import springIoc.test02.TestDIservice;

public class test02 {
    @Test
    public void test1() throws Exception {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        TestDIservice testDIService = (TestDIservice) applicationContext.getBean("testDIService");
        testDIService.sayHello();
    }
}
